package com.gxkj.demo.kafka.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping(value="",method= RequestMethod.GET)
    public String forward(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap){
        return "forward:/demo/kafka";
    }
}
